package org.example.myleet.p1005;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(5 == solution.largestSumAfterKNegations(new int[]{4,2,3}, 1));
        Assert.isTrue(6 == solution.largestSumAfterKNegations(new int[]{3,-1,0,2}, 3));
        Assert.isTrue(9 == solution.largestSumAfterKNegations(new int[]{3,-1,5,2}, 4));
        Assert.isTrue(13 == solution.largestSumAfterKNegations(new int[]{2,-3,-1,5,-4}, 2));
    }
}
